function main() {
    debugger
    const self = this;

    let formPartEle = self.$$("form_part_6yhn7q");
    let formRenderEle = formPartEle.$$getRenderElement();

    formRenderEle.$$validateData().then(vRes => {
        if (!(vRes && vRes.success)) {
            return;
        }
        let abortReason = self.$$("textarea_660tmx").cValue;
        let recIdList = self.state.extraParams.recId;
        deleteRec(recIdList, abortReason).then(r => {
            let pageRenderElement = self.$$root().$parent.$parent.$parent;
            pageRenderElement.goHistory(-1);
        })
    });

}


function deleteRec(recIdList, abortReason) {
    const jsonParams = {
        recIdList: recIdList,
        opinion: abortReason
    };
    return new Promise((resolve, reject) => {
        api.DATA_SOURCE_EXECUTE("ds_api:d4fd4546-c043-4a9e-80d9-5e1cc16fa441", "api", queryParams, [], JSON.stringify(jsonParams)).then((res) => {
            api.DATA_SOURCE_EXECUTE("ds_api:d4fd4546-c043-4a9e-80d9-5e1cc16fa441", "api", queryParams, [], JSON.stringify(jsonParams)).then((res) => {
                console.log("响应", res);
            });
        })
    });
}
